package com.ruoyi.dl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 dl_coupons
 * 
 * @author ruoyi
 * @date 2020-12-28
 */
public class DlCoupons extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 满XXX元  限制 */
    @Excel(name = "满XXX元  限制")
    private BigDecimal mlimit;

    /** 实减金额 */
    @Excel(name = "实减金额")
    private BigDecimal jnumber;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMlimit(BigDecimal mlimit) 
    {
        this.mlimit = mlimit;
    }

    public BigDecimal getMlimit() 
    {
        return mlimit;
    }
    public void setJnumber(BigDecimal jnumber) 
    {
        this.jnumber = jnumber;
    }

    public BigDecimal getJnumber() 
    {
        return jnumber;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mlimit", getMlimit())
            .append("jnumber", getJnumber())
            .append("img", getImg())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("remark", getRemark())
            .toString();
    }
}
